package edu.fyvtc.javaweb.demo.mapper;

import edu.fyvtc.javaweb.demo.model.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface zyxMapper {
//
    //插入数据
    public Integer insert(@Param("code") House house);

    //根据Id查找
    public House selectById(@Param("id") String id);

    //根据条件，统计有多少条记录
    public Integer countByCondition(@Param("name") House house);

    //根据location列表，查找多个数据
    public List<House> selectByLocationList(@Param("locationList") List<String> locationList);

}
